<template>
  <div class="tabs-container">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="前台角色" name="first">
        <CustomerRole />
      </el-tab-pane>
      <el-tab-pane label="后台角色" name="second">
        <AdminRole />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import CustomerRole from './customer-role'
import AdminRole from './admin-role'

export default {
  name: 'Role',
  components: { CustomerRole, AdminRole },
  data() {
    return {
      activeName: 'first'
    }
  }
}
</script>

<style scoped>
</style>

